package com.sc.VenusQueryBeta.adapter.account.cunka;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.sc.VenusQueryBeta.R;
import com.sc.VenusQueryBeta.adapter.BaseCompatAdapter;
import com.sc.VenusQueryBeta.model.bean.account.cunka.CunKaList1;

import java.util.List;

/**
 * Created by Administrator on 2018/10/17.
 */

public class CunKa01Adapter extends BaseCompatAdapter<CunKaList1.CunkaList,BaseViewHolder> {
    public CunKa01Adapter(int layoutResId, @Nullable List<CunKaList1.CunkaList> data) {
        super(layoutResId, data);
    }

    public CunKa01Adapter(int item_zhuanma01) {
        super(item_zhuanma01);
    }

    @Override
    protected void convert(BaseViewHolder helper, CunKaList1.CunkaList item) {
        helper.setText(R.id.tv_jituan,item.getRoomname());//集團名稱
        helper.setText(R.id.tv_jituan_money,item.getTradenum()+mContext.getResources().getString(R.string.wan));//金額
    }
}
